import requests from '@/utils/request'

// 按条件分页获取报告
export const PeriodReportPagination = (page, page_size, ft=null, ven=null, kw=null) => {
  return  requests({
    url: '/v1/infor/periodReport/',
    method: 'get',
    params: { page, page_size, ft, ven, kw }
  })
}

// 获取报告的基础信息
export const PeriodReportInfo = (rid) => {
  return  requests({
    url: '/v1/infor/periodReport/info/',
    method: 'get',
    params: { rid }
  })
}

// 请求近期报告
export const PaginatorPeriodReport = (page=1, pageSize=30, ft=null, ven=null) => {
  return  requests({
    url: '/v1/infor/periodReport/paginator/',
    method: 'get',
    params: { page, page_size: pageSize, ft, ven }
  })
}
// 新增阅读数
export const UpdateReportReading = (rid) => {
  return requests({
    url: '/v1/infor/periodReport/reading/',
    method: 'post',
    data: { rid }
  })
}
